package cn.laixueit.servlet;

import cn.laixueit.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;


@Controller
public class StudentServlet {

    @Autowired // 动态代理
//    @Qualifier("studentServiceImpl2")*/
//    @Resource // ctrl + p
    private StudentService studentService;

    public void save() {
        studentService.save();
    }

    /*
    * ioc注解
    *   controller,service,Repository,Compomnent,  <bean>
    *   (Autowired,Qualfier,)Resource,  <ref>
    *   Value 属性
    * */
}
